package org.darcy.service.sys;

import java.util.List;

import org.darcy.entity.sys.SysFile;
import org.darcy.framework.exception.BusinessException;
import org.springframework.web.multipart.MultipartFile;

public interface UploadService {

	/**
	 * 上传单个文件，入参：base64格式的图片
	 */
	SysFile upload(String base64) throws BusinessException;

	/**
	 * 上传单个文件
	 */
	SysFile upload(String type, MultipartFile multipartFile) throws BusinessException;

	/**
	 * 批量上传文件
	 */
	List<SysFile> uploadBatch(String type, List<MultipartFile> multipartFiles) throws BusinessException;

}
